/*
 * Reflexis is Copyright (C) 2007, by it-raum.ch
 * martin.imobersteg@it-raum.ch
 *
 * It is free software; you can redistribute it and/or modify it under the terms of either:
 * a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
 * b) the "Artistic License".
 */

#ifndef PROBEREADER_H
#define PROBEREADER_H 

#include "Probe.h"

#include <QtGui>
#include <qextserialport.h>

class ProbeReader : public QObject
{
	Q_OBJECT

public:
	ProbeReader(QObject *parent);
	~ProbeReader();

signals:
	void probeReady(Probe);

private slots:
	void read();
	void start();
	void stop();

private:
	bool checkBCC();

	QextSerialPort *port;
	QTimer *timer;

	QString buffer;
	QString probe;

};

#endif // PROBEREADER_H 
